#include <iostream>
using namespace std;

int n = 0, total = 0;
int a[101] = {1};

void OutPut(int j)
{
    cout << n << "=";
    for (int i = 1; i <= j; i++)
    {
        if (i == j)
            cout << a[i] << endl;
        else
            cout << a[i] << "+";
    }
}

void Depart(int m, int k)
{

    for (int i = a[k - 1]; i <= m; i++)
    {
        if (i <= n)
        {
            a[k] = i;
            m -= i;
            if (m == 0)
                OutPut(k);
            else
                Depart(m, k + 1);
            m += i;
        }
    }
}

int main()
{
    cin >> n;
    Depart(n, 1);
    return 0;
}